Vue.component('indexList',{
    props:["list","number"],
    template: '<div class="hot-list"><div class="clearfix">\n' +
    '            <a v-for="(item,index) in list" v-if="number==1?index=list.length:index<4">\n' +
    '                <img v-if="item.coverImgSrc" class="hotTop-leftImg lazy" :data-original="item.coverImgSrc">' +
    '                <strong v-if="item.title">{{item.title}}</strong>' +
    '                <span>{{item.imgNote||item.note}}</span>\n' +
    '            </a>\n' +
    '        </div></div>',
    data: function () {
        return {}
    },
    methods:{
        bgimg:function(url){
            url = url?url:"";
            return {
                "background-image":'url("'+url+'"),url("")'
            }
        }
    }
});